package com.wc.alorithm_luogu.P5709;

import java.util.Scanner;

/**
 * @Author congge
 * @Date 2023/4/17 22:05
 * @description https://www.luogu.com.cn/problem/P5709
 * 苹果和虫子
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int m = sc.nextInt();
        int t = sc.nextInt();
        int s = sc.nextInt();

        if (t == 0) {
            System.out.println(0);
        } else {
            if (s % t == 0) {
                if (s/t > m){
                    System.out.println(0);
                    return;
                }
                System.out.println(m - s / t);
            } else {
                if (s/t + 1 > m){
                    System.out.println(0);
                    return;
                }
                System.out.println(m - s / t - 1);
            }
        }
    }
}
